package com.joysuch.wwyt.edu.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.joysuch.wwyt.edu.bean.EduQuestionConfigDto;
import com.joysuch.wwyt.edu.bean.EduTestPaperQuestionDto;
import com.joysuch.wwyt.edu.bean.EduTestPaperQuestionItemDto;
import com.joysuch.wwyt.edu.entity.EduQuestion;
import com.joysuch.wwyt.edu.entity.EduTestPaper;
import com.joysuch.wwyt.edu.entity.EduTestPaperQuestion;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface EduTestPaperMapper extends BaseMapper<EduTestPaper> {

    List<EduTestPaperQuestionItemDto> selectPaperByquestion(@Param("id") Long id);

    List<EduQuestionConfigDto> selectQuestion(@Param("id") Long id);

    EduTestPaperQuestion selectByquestionId(@Param("id") Long id, @Param("question") Long questionId);

    Integer selectByName(@Param("name") String name);

    Integer selectSole();

}
